<?php

class Application_Form_Adduser extends Zend_Form
{

    public function init()
    {
        $this->setAction('/users/add');
		$this->setMethod('post');
		
		$this->addElement('text', 'fname', array(
			'label' => 'Имя: ',
			'required' => true,
			'maxLength' => 60,
			'filters' => array('Alnum'),
			'validators' => array('Alnum')
		));
		
		$this->addElement('text', 'lname', array(
			'label' => 'Фамилия: ',
			'required' => true,
			'maxlength' => 60,
			'filters' => array('Alnum'),
			'validators' => array('Alnum')
		));
		
		
		$this->addElement('submit', 'submit', array(
			'label' => 'Добавить'
		));
    }


}

